Clarified how the interrupt mask works
Use the official ARM way of initialization, clean up init routine
Added copyright info
Added test for interrupt status bits. Updated copyright info.