Added numeric input check for each function.
Added input validation and error messages displaying value of input.