fixed problem with splitting files.
added timeout to watcher to prevent false reads when whole lines aren’t written.