Added event class getter and tests.
Fixed initialisation bug.
Fixed bug in detecting max_occupancy violations.
Fixed get_population memory leak.