Spelling errors

Corrected a number of spelling errors, both visible and programmatic.