Updated the example

Now in sync with the one in the TOML's Github repo.
General cleanup of the code

Things that my editor came up with, and tried to remove inconsistencies
in use of whitespace while reading through.
Add test suite and various cabal file modifications