Added some documentation comments and cleaned up the example