Added comments, and changed functionality for deleting a node.