Refactoring to scheduled start and end with a reschedule flag. adding cron script for install