Added SchedulerParameters option of max_sched_time

limits how long the main scheduling loop can execute for
Added SchedulerParameters option of sched_interval

controls how frequently the main scheduling loop will execute.