implemented MCMC
major refactoring, much better Error-Safety through errors library