Preparing to refactor UART code

There are crashes happening in my UART code, so I'm going to refactor
all of it.
Refactored my UART code.

There are still seemingly random crashes with the serial library.