refactoring into smaller modules
add halt_event loop wiht signal handler
initial inotify setup