filled out the command line parser
added some command line tests