Renamed Bernoulli2 to bernoulli. Still have to update bernoulli_optimize.jl and bernoulli_diagnose.jl