Group model extension, adding inifinite loop check when changing parents, two types of group structure extraction added