doc Fixed some typos in comments and error messages

Fixed typos and various misspellings in several files.