create inotifywait_success_file; refactoring; comments