Renamed gameAnalyticsData.categories in gameAnalyticsData.eventsByCategory and implemented archiveEvents()