added time to events and a generate string method