updated tree.h with new prototypes/structs