Added basic comments and EventManager.