add complement to BernoulliSampler and minor style changes