Tree working properly and documented