logging, csv

now writes a csv