Add code + a few extra comments from the scalar UDF examples in the
docs. Didn't do extra testing, just reused the code straight from
the docs with 2-space indentation.
Fix return types in usage comments showing CREATE FUNCTION stmts.
Adopt non-BSD brace style to match Cloudera convention.
Address Nong's comments:
- Off-by-1 in loops.
- Continue to skip loop iteration.
Shorten long comment line. Keep to 90 chars or less.
Merge pull request #3 from max-webster/master

Add code + a few extra comments from the scalar UDF examples in the