added getGreatGreatGrandParent and some comments