made pool object from emcee with a few minor changes.