sampler with configurable parameters added. Also, some new test cases added and PEP verification done.