Add a command line interface.

This branch adds a command line interface for easier use.