Added toString method to EventInfo class