added error messages for non-numbers and divide by zero