modified code so that the progress bar shows the total number of files
broadened rather than the index of the last file broadened
Got rid of unnecessary data passing through TaskInput and TaskOutput.
Fixed the main progress bar and fixed the slave time out error