more comments.
added check.gear.groups function call to assign.geargroups rather than in frame.
added more comments.  moved check.gear.groups to assign.geargroups.