Improved MainRun.C and runAll.sh