Edited R files for MCMC