3rd Commit

Added error checking for inputs.
-Alex Mun