Fixed docs, tests, user-specified spatial sampling.