Skeleton of the report + fixes to the CSV writer