add documentation to treebuilder
rename to tree_builder