Found some mistakes in the MCMC

Made an adjustment so all calculations account for the fact that the z
term already incorporate sigma when it's generated. Also general
adjustments to incorporate misc bugs in the code.