fix typos and tidy up formatting of example
Merge pull request #29 from fugu13/exampletidy

fix typos and tidy up formatting of example