Cleaned up GPIO and interrupts