Corrected function names and comments

Also corrected use of deleteDescendants() function call.