file download is working again and path given
cleaned some stuff, file upload and download