Cleaning up jobsgroup.c (not done, working on generateJobs)