Added code to handle command line

Command line options are now supported