Added usart support
Also improved the memory stuff, fixed a few minor bugs.