cleaned up model generation code further by eliminating utility write methods and fixed bug in mcmc_writer by fishing the RNG through so that generated quantities could be replicated