created event system

missing unit tests
created event system
configuration for event system