Fix a bunch of spelling

and one real code change.