Standardized the notation for deleting objects. Simplified the code for deleting a subtree.