Updated some of the serial protocol code.(for GUI)