Fix some issues in bernoulli docs.