Edited removeNode

Now correctly removes node + edges