modified connection code to work even if ble device decides to change macAddresses. Also added code to reconnect if the connection is ever lost