datatable to csv comments / refactor