fixed interruptmask-bug in PIC
+ minor changes