fixed typo in comment
added example usage code to app
fixed bugs