fixed broken node removal (closes #1)
 - added unittest to prove bug
 - added removing of edges to and from a node which was the root cause