added functionality for command line parameters for input and output