Add missing header
Add timer functions and update SPRs
Finish work on reentrancy
Add convenience functions for critical sections