add copyFiles
Test bugfixing
bugfixing function cp