Added some base functionality for the tree and nodes.