Added copy file
Corrected file mode