Update SLfitBayesianModel, improve the code