added option to input file from command line option