updated some style stuff
priority scheduling done, if its the way i think it should be done.