Fixes to Metropolis-Hastings algorithm
Merge pull request #1 from rudeboybert/master

Merging my input to MH code