added function to get github events from api for any repository; cleaned up comments