STABLE VERSION: cpu and gpu versions pass all checks with valgrind and cuda-memcheck I can think of, output looks bug-free. Added an option for cpu and gpu versions to specify folder contianing mcmc output. Added a shell script, gelman-factors.sh, to call the R script, gelman-factors.r, to generate gelman factors on mcmc output.