add docs to Tree.js