Delete Keyfile
Improved copy function