Write output to CSV. Print some useful information