Added formating code and changed how buffers are managed. Tested with ADC and not working properly. However, the raw data received looks right.