Documenting the samplers and adding sampled gradient.