Documentation fix up and function definition fixes.