Added method to attach interrupts to callbacks, and added ATMEGA328p interrupt vector