changed add_node, added attribute to tree struct to track depth, added print functions; both add and print have bugs