Whitespace and spelling fixes

Fixed a few spelling errors I found at first glance, and tightened out the whitespace by hand (with vim.)