added delete functions to name-tree and name-tree-entry