Added some documentation to the tree conversion methods, added initial conversion resource deallocator infrastructure.