Improved node and tree logic. Added nodeID to node class. Restructured
packaging.