Added command line functionality.
Added help output for command line interface.