Updated README, fixed some bugs, and adding tests for command line app.