Add Tree. Recalc Tree. Fixed bugs.
Fixed small bug of tree