halfway enabled interrupts for tap io
move code around
fix warnings, remove stale code
comments/debug newline fix