add command line interface
Merge pull request #3 from SMFOSS/add-cli

add command line interface