adding documentation to mcmc_writer