added support for recursing sub directories
added directory scan sample
split event handling execution from the configuration