Completed changing over the command line parsing system.
It is now possible to run all the major functions from the command line as well as the UI.