changed the framework to be generic and need only input config files for adding hooks. Fixed #5