changed input and output files to arguments