Node class code

Implemented all the expected methods in the Node class. Also generated
javadocs for the Node class.