Deleted large parts of the commented code; number of events set to 100