fixed cron job timing
introduced a lock file for cron job handling
added option to disable cron job creation