got rid of some bugs in add.node. put in some error traps