 }
 //Get the device ID using the user access token
 func getDeviceId(user_access_token:String)-> String{
+    
+    //URL string for the HTTP Request
     let url="https://api.kandy.io/v1.2/users/devices?key=" + user_access_token
     var json_:JSON = JSON.null
+    
+    //Request Building and response handling
     Alamofire.request(url,method:.get).responseJSON{
         response in
         switch response.result{

    
    var smsStatus:String="";
   //Http Request using Alamofire Library (Swift)
    Alamofire.request(smsURL, method:.post,parameters:parameters,encoding:JSONEncoding.default)
        .responseJSON{
            response in
            switch response.result{

    
    return json_["result"]["devices"][0]["device_id"].stringValue
}

//Check the parameters for valid strings
func check_init_error(domain_api_key:String,domain_secret:String,user_id:String) -> Bool{
    if domain_api_key.isEmpty {return false}
    if domain_secret.isEmpty{return false}
