Added API call, cleaned up some code, created Event class to store Event data