Reimplemented CSV-export, can now export
to CSV files again