Command Line Interface added

Now handles both direct command line as well as running its own program.