updated combineResults.sh script with better handling of failed jobs and recalculated weights in formatPlots.C