Cleaned EventController and added some comments.