Update node.c

Updated, cleaned and working