more typos, cleaning up code to be consistent with the tutorial in ghpages