bugfix when removing a node
Documented what is done