removed the population member from location object and added definitions for the location object class functions - createInitialEvents(), receivedEvents(), etc.
modified the location object for population variable in location state. also rectified a typo in receivedEvents().