cleaned up and added example

removed a few lines that were commented out and added an example in
comments.