Removed unnecessary trailing comma from rows

CSV rows had an unnecessary comma at the end of each line. This was
removed with .slice before writing each row to CSV.