Changed to provide specific error message and return null when trying to divide by zero
Added more in depth division by zero test