now export to CSV; convert time into UNIX timestamp
small refactoring
change headers in some CSV files