added comments to tree.h