fixed name conflicts
fixed memory leak
fixed memory leak
simplified deletion of nodes