Added a Main class that is run from the command line and processes the options.