updated app to accept command line args. fixes #1