Added CSV exporting

This adds exporting of CSV files, which makes it possible to import into spreadsheet software