Fixed this file to account for bad user inputs from the command line
Implemented default value for function and edited main routine