Added ability to download files on click. Very rough