Added task switching code
Added code to switch to the next process
Fixed running of the idle process