parsing the command line arguments and input files