File copy method is fixed and tested