finished bug fixes in scheduler and context switching interrupts