Wrap if condition in (...) instead of if then
Don't need this
Rename function definition
Update to current standards
Updated examples
Added min max functions
Updated the README file with the latest