tested printEventsForNDays function, everything looks OK
implemented eventPrinting in the right order