Bugfixes and Speedup

Fixed a couple of bugs in the mcmc file, and found a slightly quicker
way to take determinants and inverses for covariance matrices