Workin on scheduling; set the stage for context switching and refactored some constants