implemented node_dump and added a unique nodeid to every node