Now supports exactly two periodic threads with separate hardware priorities. Now using timer2b for periodic tasks in addition to timer2a. Using timer1b for thread sleeping.
Changed units to microseconds for period