added small cli library, more documentation, more tests.  waited too long for a commit :/