Added documentation for TreeTable and fixed some bugs