Per issue #20. Updating the sample application and adding some more documentation.