Remove 'Thread.sleep' for waiting file creation, and add a watcher class
- update all code to reflect this change.