Writes sample names as first row, class as second row. Data below that.