Have now added basic command line functionality courtesy of Thor
Added error checking to the command line options