added the code for priority rouind robin, and modified some comments