 
 
 // MARK: - Internal Connection functions
-extension SwiftyTeeth {
+internal extension SwiftyTeeth {
     
     // Using these internal functions, so that we can track devices 'in use'
-    internal func connect(to device: Device) {
+    func connect(to device: Device) {
         // Add device to dictionary only if it isn't there
         if connectedDevices[device.id] == nil {
             connectedDevices[device.id] = device

    }
    
    // Using these internal functions, so that we can track devices 'in use'
    internal func disconnect(from device: Device) {
        // Add device to dictionary only if it isn't there
        if connectedDevices[device.id] == nil {
            connectedDevices[device.id] = device

}


// MARK: - Central manager
extension SwiftyTeeth: CBCentralManagerDelegate {

    public func centralManagerDidUpdateState(_ central: CBCentralManager) {
        switch (central.state) {
        case .unknown:
            print("SwiftyTeeth: Bluetooth state is unknown.")
        case .resetting:
            print("SwiftyTeeth: Bluetooth state is resetting.")
        case .unsupported:
            print("SwiftyTeeth: Bluetooth state is unsupported.")
        case .unauthorized:
            print("SwiftyTeeth: Bluetooth state is unauthorized.")
        case .poweredOff:
            print("SwiftyTeeth: Bluetooth state is powered off.")
        case .poweredOn:
            print("SwiftyTeeth: Bluetooth state is powered on")
        }
    }
    
