Fixed static memory buffer size.
Removed while statements that will hang if usb not connected.