Started work on documentation for getEvents function