edited the backlink so the url it provides is useable
changed the function so if a file with the same name  already exists the new copy will overwrite