removed hard-coded filename and gets it as a command line parameter