Numerical simulations of free electron laser oscillators