Made some fields private
Minor changes in Node.java & friends