rewrite CSVWriter
bug fix on CSVWriter
Merge branch 'feature/io' into develop