refactor to allow command line testing
cleaned up extraneous comments
Refactor each function to return the result, removing the echo
Validate divide by 0 errors, return FALSE if divide by 0 is attempted.