Add missing function documentation
Assert that we are not dividing by zero