Reading the motion detect status 

The previous way of reading the RA_MOT_DETECT_STATUS used  the readbit() function(getXPosMotionDetected()), therby erasing the rest of the motion detected bits(Once the interrupt register has been read, the entire register is reset). Therefore to get correct readigs the entire regiter has to be read at once. I have included a function (getMoitonStatus()) that reads the entire byte.