Implemented command line parameters and unit tests