modified main.berc and uart.c