Attempting to figure out parsing command line options.
Made more robust command line parser.