export to CSV
we must close the stream
forgotten comment out
Check num of com elsewhere
New maxB
fixed CSV headers