Some simple documentation.
Tidy up the sample code