Added comments for the treeChanges and findRemovedEdge functions