add code for extracting parameters from mcmc results.