add a query word to return the current mode.
Thats in the wrong place.
Cleanup the comments.
Put the NVIC words in a separate compilation unit.
Tidy things up.
Re-factoring.