commenting snippet added; added comments to TreeNode class