added insertAfter and changed field scope in node.java