add comments
set up inotify watch before looking at the dir, prevent race