fixed some NullPointer bugs and changed storage type for BluetoothDevices