Added some testing and modified some methods in Node.java