Uart module

Uart functions moved to module