moved more node specifics into node.cpp and tree.cpp