Early IR handling code added

Not yet tested...
BUG: IR only sending 0x01
Small changes to IR, still not working though

Reset interupt bit and prototype the init function