Prevented factorial by negative number

Resolved #6; Added an exception to the factorial function when it
receives a negative input. Also updated the calculator function to
rescue this exception and print an error message if the input is
invalid.