added C file to read UART and dump to file