added the buffer parsing and serial interfacing