Changing init defaults and adding interrupt mask

When initialized, IOCON.MIRROR and IOCON.ODR are enabled, INTCON is set to 0 to trigger interrupts on pin value change, and GPIO pins are set to input.

New function was added to allow specification of interrupt mask.