Fixed an oversight in the calculation of the accepted candidates, minor fixes for runSimulationstudy