Added getActiveCalendarEvents function
Added clarifying comment