Simplified the thread synchronization using a semaphore instead of a queue.
Added an option for creating a script to copy files from a remote SE.
Fixed a minor bug.