Collective effects in the free electron laser