Fixed an issue with the clear() method, cleaned up some areas of the code, and implemented the NodeData class (Node does not contain a pointer member of NodeData).