changes thread priority to 40
Added getmaxpriority and lowered CS delay t0 600us
wrong sys call for priority
added missing header