output in csv format, allow various length data

the version before will truncate the various length data
for example, first block has 3 row and second block has 4 row
the last row of second block will be truncate
Now in CSV format, all the data will be export to csv format
only a warning message to remind the user