Further work on driver code. Added kfifo buffers