Add unit test for C01B sampling, and bug fix in sampling
pep8-ed
Merge pull request #580 from memimo/299

Add unit test for C01B sampling, and bug fix in sampling