Moved warning message API to config, added file/dir checks for state file, updated cron script example with argv check