made changes to do ssf Mediation

updated bootstrap function
added tracking of quantities of interest