add commented skeleton for write_csv()
Separate write_output() and write_loglets()