Added interrupt handling subsystem; reworked PIC API