         }
     }
     
-    
+    /**
+     Method is called after the locationManager requests location and the locationManager failed at getting the user's location. It will return that there was an error by calling the getUsersCurrentLocationCallback
+     
+     - parameter manager: CLLocationManager
+     - parameter error:   NSError
+     */
     func locationManager(manager: CLLocationManager, didFailWithError error: NSError) {
-        
-        print(error)
         
         if(getUsersCurrentLocationCallback != nil){
             getUsersCurrentLocationCallback(location : nil)


extension LocationDataManager : CLLocationManagerDelegate {
    
    func locationManager(manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) {
    
        print("did update location")

        }
    }
    
    /**
     Method returns the user's language locale
     
     - returns: String
     */
    func getLanguageLocale() -> String {
        return NSLocale.preferredLanguages()[0]
    }
    
    /**
     Method requests when in use location services (this will display an alert to the user to authorize location services)
     */
    func requestWhenInUseAuthorization(){
        locationManager.requestWhenInUseAuthorization()
    }
    
    /**
     Method triggers the locationManager to requestLocation
     */
    func requestLocation(){
        locationManager.requestLocation()
    }
    

    /**
     Method checks if location services is enabled. If it is then it returns true in the callback parameter. If location services isn't enabled then it calls the requestWhenInUseAuthorization. When the CLLocationManagerDelegate methods didUpdateLocations or didFailWithError methods are called, the isLocationServicesEnabledAndIfNotHandleItCallback will be called with the result
     
     - parameter callback: ((isEnabled : Bool) -> ())
     */
    func isLocationServicesEnabledAndIfNotHandleIt(callback : ((isEnabled : Bool) -> ())){
        
        isLocationServicesEnabledAndIfNotHandleItCallback = callback
        
        if(CLLocationManager.authorizationStatus() == CLAuthorizationStatus.AuthorizedWhenInUse || CLLocationManager.authorizationStatus() == CLAuthorizationStatus.AuthorizedAlways){
   
            isLocationServicesEnabledAndIfNotHandleItCallback(isEnabled: true)
            isLocationServicesEnabledAndIfNotHandleItCallback = nil
        }
