Added code to write fitness cases and target cases to a .csv file