Add some more docs and a command line program.