- added getExpansionState, restoreExpansionState
- changed tree to mtree