More CompactHeightfield refactoring and documentation improvements.