Added updated UART code to the project.

Integrated Jesse's updated UART code into the project and fixed all
errors so it compiles.