working on the delete function
Now deleting other entries than root, but still doesnt work correctly