Outputting csv files into a results folder

- can’t get freeing of memory in experiments and test loops working
- error with starting experiments after time interrupts