Refactoring event triggering. Added readme.