added ability to download a csv file, for issue #6