Used a more accurate way to set the timer compare register
Moved the system timer and mini uart code out of main.c
Basic support for uart interrupts