Adding a helper function to the world for creating events. Adding some javadoc.