Export to CSV and Excel (not fully working)

System does export inthe various formats, however opening the files
does not contain the right data.