added a typdef for uint just to be on the safe side though I think there aren't any uints left. also checked the timing values with the new code and they appear to work well, within like 2 or 10 cycles of the old code