added some documentation for the outputSetup method
made sure that there are no duplicate mapred.cache.files values
added some unit tests for the latest optimiser changes