Feature/mcmc writer

@syclik 

Fixed deprecated test and bug in generator.hpp (that was caught by the test).  Merged updated development branch.