The development of lightning discharges