Incremental progress on TreeManager and example code, not done yet though