mpu implementation

FIFO buffer overflow- some inefficiencies in the code