 
 //Requesting the user access token
 func getUserAccessToken(domain_api_key:String,domain_secret:String,user_id:String) -> String{
+    
+    //URL string for the HTTP Request
     let url = "https://api.kandy.io/v1.2/domains/users/accesstokens?key=" + domain_api_key
     + "&domain_api_secret=" + domain_secret + "&user_id=" + user_id;
     var json_:JSON = JSON.null
+    
+    //Request Building and reponse 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{

}
//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{
