Added memberof property and added findNode function for tree gen.