Fix issue with duplicate file names; Add code for selecting files for download