Re-ordered functions and improved documentation in TTMDocument.h and TTMDocument.m.