Modified UART module, added ungetchar functional, improved reading dec