bugfix: mcmc, pot script cleanup

Found a bug in the code to impute below threshold with the correlation
function.