bug fix - added a return value test and record the group that can't be detected

This fix allows group_detect to continue processing if one group is not detected. Previously it would fail badly. groups_not_detected just keeps track of the problem group found.