changed addUsersToGroups to accept command line arguments