adding comments to buildTagTree