The scientist leaves behind a complicated legacy after making a slew of offensive remarks during the later part of his life.