         // Dispose of any resources that can be recreated.
     }
     
+    /**
+     Will call logout/unsubscribe/ API and removes all the user's data.
+     
+     - parameter none
+     - return none
+     */
     private func callAddDeviceMethod() {
         NewDeviceRequestManager.sharedInstance.putNewDevice({ (success, message, code, addDeviceCode) in
             if success {

        return cell
    }
    
    
    func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
        if indexPath.row == 2 {
            callAddDeviceMethod()
        }
        else if indexPath.row == 3 {
            
            self.displayAlertOption(NSLocalizedString("delete-user", comment: ""), alertDescription: NSLocalizedString("deleteusermessage", comment: ""), onCompletion: { (buttonPressed) in
                switch buttonPressed{
                case alertButtonType.OK:
                    self.callUnSubscribeMethod()

                    
                case alertButtonType.cancel:
                    break

        return self.settingsArray.count
    }
    
    func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
        let cell = tableView.dequeueReusableCellWithIdentifier("cell", forIndexPath: indexPath)
        cell.textLabel?.text = settingsArray[indexPath.row] as? String;
