updated run to be argument based depending on weibull or piecewise to be run