added javadoc, fixed broken link in javadoc in TreeNode.java