Added enum module.
Implemented event system.