Node Class javadoc and fixed equals method

Updated the node class to include javadoc comments. Also fixed the
equals method which was never returning -1.