little fixes and clean-up
oops, range needs to start at 0, not 1
fixed ntot= 1/opp_evt_ratio * n_count