 
 import Foundation
 
-// Serves query making which consisting of multiple query.
-
 public final class Query {
     
-    var isEmpty: Bool {
+    public init() {}
+    
+    public var isEmpty: Bool {
 
         return queries.isEmpty
         
     }
     
-    var count: Int {
+    public var count: Int {
         
         return queries.count
         
     }
 
-    //Key : Value dictionary.
-    var queries: [String: AnyObject] = [:]
+    public var queries: [String: AnyObject] = [:]
     
-    //URL format query.
-    var absoluteString: String {
+    // Returns an URL format query.
+    public var absoluteString: String {
 
         return joinElements()
     
     }
     
-    //URL format query with BASE64 encoding.
-    var absoluteStringWithBase64: String {
+    // Returns an URL format query with Base64 encoding.
+    public var absoluteStringWithBase64: String {
         
         let body = absoluteString.data(using: String.Encoding.utf8)
 

        return self
    }
    
    func hasKey(_ key: String) -> Bool {
        
        guard let _ = queries[key] else { return false }
        

        
        var absoluteQuery = ""
        
        return queries.reduce(absoluteQuery) { query, queries in
            
            query + querySeparator + queries.0 + valueSeparator + String(describing: queries.1)
        
        }

    }
    
