Number of events to process now read in through "-n" switch.
Some debugging code commented and/or removed.