Added events method to return all events, and added example document