Update runBetter.m

runBetter has been made a function which takes two output parameters inputModeIndex and inputModelIndex.