Added Javadoc description for the copyFile method