[Issue #188] [WIP] finishes exporting data to csv