Added class files, fixed bugs in Node.java