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.