reworked the code for USB and BT connection
removed duplicated file