Started work on test function

Camera trap test in but not working as can't read in file
Rearranged code so that CT are now not calculated in loop
A parameter file is printed out before start of the loop