Added simulation code

Simulate UART code for simulation demo.