made output file a command line argument