Modified interfaces and main and MCMC example. Other examples must still be modified.