Fixed many issues  with new Schedule system

Added PriorityConflictException
Added configurable debugging
Rearranged a lot of code