Added another method to LinkedList.java and cleaned up the implementation of the nodes