         
     }
     
-    /**
-     *
-     * Reset Password
-     *
-     * @param email
-     * @param callbackObject
-     * @throws CloudBoostError
-     */
+    /// Reset the Password associated with a given email
+    ///
+    /// - parameter email: email addesso of the use requesting password reset
+    /// - parameter callback: a block returning a CloudBoostResponse with the response of the operation
+    ///
     public static func resetPassword(email: String, callback: (reponse: CloudBoostResponse)->Void) {
         let data = NSMutableDictionary()
         data["key"] = CloudApp.getAppKey()

            (response: CloudBoostResponse) in
            if response.success {
                if let doc = response.object as? NSMutableDictionary {
                    self.document = doc
                    self.setAsCurrentUser()
                }

        
        return false
    }
   
    /// Get the current user logged in the system
    ///
    /// - returns: A CloudUser object contining the user currently logged in. If nil, no user is logged in in CLoudBoost
    ///
    public static func getCurrentUser<T where T:CloudUser>() -> T? {
        
        if self.currentUser != nil {
            return self.currentUser as? T
        }
        
        let def = NSUserDefaults.standardUserDefaults()
        if let userDat = def.objectForKey("cb_current_user") as? NSData{
            if let doc = NSKeyedUnarchiver.unarchiveObjectWithData(userDat) as? NSMutableDictionary {

                let user = CloudUser.cloudObjectFromDocumentDictionary(doc, documentType: T.self)
                
                self.currentUser = user as? T

                return user as? T
            }
