code refactor; add BluetoothReadWrite class