Implemented exporting to CSV; also fixed bug causing crash if exporting
twice in a row
Merge pull request #9 from kadensotek/master

Implemented exporting to CSV