added ability to specify the data file on the command line