more stats, handle unhandled interrupts in main loop, basic command/event interface working