Generate csv

Adds csv generation functionality for use in spreadsheet applications.