added the sampler module and improvements to the extractor package