Print settings and values to a csv file.

Also added the ability to change the thread group size.
Fix crash bug when changing number of threads per group.
Started setting up automatic testing.