fix typos and spellings

fix up some typos and spelling errors in the code comments