added check to verify proper usage of factor arg 1, and updated infile and outfile argvs