revised newnode to take empty output
changed note on graphnodesfile func