BHAGENE3, a Monte Carlo event generator for lepton pair production and wide-angle Bhabha scattering in e + e - collisions near the Z peak