Changed CSV download link to use Blob

downloadCSV function now uses blobs and has better comments. Removed the
setFilename function since it was just one line of code.