Starting to support interrupts

Rough start on supporting interrupts.
created a test app for interrupts