simulation study files

model for final MCMC, main code, trimming function file