editted sketch to format data transmission in accordance with matlab listener, usb_listener.m