now directly writes a csv file
corrected delimiter for text, now double quote
adjusted to new trial list file