Several changes. See details.

Add event wait timeout (for routine checks)
Add delay before reading files
Switch to watching for several files with a specific prefix
Print messages for various events
Switch to splitting file names based on shell syntax
Switch to deleting files only when they have data
Various bug fixes