Added a stratified sampling function and some recording of the derived parameters in the model, such as the lower bound results.