Changed tree to index, docs change