update command line processing

- using https://github.com/codegangsta/cli
- measures are subcommands, for example, see README
- new functions need to be added to the cli commands manually