added tree javadoc