Feature/copy as sub

move code for option --copyfiles to subroutine

Improve readability and layout of the main program by moving the code for (non-flac) file
copying to a subroutine.