added command line parameters and tests for input arguments