Refactored code to handle incorrect input variables.  Now prints out how to use the program.