sampler.txt explains API of the sampler code