         (recur reduced-map (replace-param query param-value param-name))))))
 
 (defn render-queries
+  "Calls render query on each every query from the query list"
   [query-params-map query-list]
   (map (partial render-query query-params-map) query-list))
 
 (defn fire-query
+  "Hits the database with SQL queries."
   [data-source query]
   (let [db-spec {:datasource data-source}
         sql-query (get query :query)]
-      (assoc query :result (jdbc/db-query-with-resultset db-spec [sql-query] identity))
+    (assoc query :result (jdbc/db-query-with-resultset db-spec [sql-query] identity))
     ))
 
 (defn run-queries-and-get-results
+  "Takes in the path to the configuration file, data source and a hash map of parameters for
+  the SQL to completely render it."
   [config-file data-source query-params-map]
   (->> (read-config config-file)
        (map get-queries)

       (not-nil?)))

(defn read-config
  [config-file]
  (json/read-str (slurp config-file) :key-fn keyword))

(defn get-queries
  [query-group]
  (map (fn [query-map]
         (assoc query-map :queryGroupname (get query-group :queryGroupname)))
       (get query-group :queries []))
  )

(defn replace-param [query param-value param-name]
  (let [search-param (str ":" param-name ":")
        sql-query (get query :query)]
    (if (is-substring-of search-param sql-query)

(def not-nil? (complement nil?))

(defn is-substring-of
  "Gives back a boolean output whether the first
  string is a substring of the second string or not"
  [sub-string string]
  (->> sub-string
       (re-pattern)
