CSV Creation

Wrote 'write' method in controller and 'write' view to create CSV files.
Need to ask about format.