Updated UARTDemo.c file, loops better and removed brackets