Some code cleanup and doc work
Code cleanup for UDF-8 and documentation
Cleanup and comments