WIP: Added deprecations in tree.py
WIP: updated documentation in tree.py