Implemented export of data to csv files.