Group contacts exporting is not working

The original code was written to export a single group at a time.

The new implementation allows you to export multiple groups at a time.