Added functionality to pass input and output files from command line