added comments, fixed spelling errors, changed some printf's
Merge pull request #23 from dlazell/mybranch

added comments, fixed spelling errors, changed some printf's