Treeredo

Same comments as before, docs are still bad and ``subtree`` is missing.