Add some refactoring
First functionnal  version of generic event interpreter