Changed Uart interface and added fifo queues to input and output of UART