add a CLI
document command line usage
add tests
Merge pull request #13 from benbalter/bin

Add CLI