added partial decoding of serial communication to main.cpp

modified from read(...FULL LENGH) to read(...PARTIAL) to read serial data smoothly.
I think you still have diffs which is not related to the problem