All ISR/IRQ stuff moved into its own header and source. Comments added on all major parts. Some optimisations in important functions. All ASM removed for ISR and IRQ, instead using new GCC directives.
Also made some type changes in serial.h
Intended to be used for debugging, but it's useful.