finished groupdetermination

added n=4 check, added not-in-list checks

testing tomorrow