changed bimodality function and fit beta function (bimodality unnecessarily included nt and fitBeta had a problem in the if statement