testing applymcmc, fixing bugs

WIP
testing applymcmc, fixing bugs

still WIP, but it now runs. At least for ~4 minutes, until now. Now using log-likelihood, for the less error.