Added new docstring to tree

I have added the docstring to the tree.py and topictree_json_extract