fix typo and formatting issues
Merge pull request #6 from andyroyle/master

fix typo and formatting issues