 // MoaHttp.swift
 //
 // ----------------------------
+
 import Foundation
 
 /**
- Shortcut function for creating URLSessionDataTask.
- */
+
+Shortcut function for creating URLSessionDataTask.
+
+*/
 struct MoaHttp {
   static func createDataTask(_ url: String,
-                             onSuccess: @escaping (Data?, HTTPURLResponse)->(),
-                             onError: @escaping (Error?, HTTPURLResponse?)->()) -> URLSessionDataTask? {
-    
+    onSuccess: @escaping (Data?, HTTPURLResponse)->(),
+    onError: @escaping (Error?, HTTPURLResponse?)->()) -> URLSessionDataTask? {
+      
     if let urlObject = URL(string: url) {
       return createDataTask(urlObject: urlObject, onSuccess: onSuccess, onError: onError)
     }

// MoaLoggerCallback.swift
//
// ----------------------------
import Foundation

/**
 A logger closure.
 Parameters:
 1. Type of the log.
 2. URL of the request.
 3. Http status code, if applicable.
 4. Error object, if applicable. Read its localizedDescription property to get a human readable error description.
 */
public typealias MoaLoggerCallback = (MoaLogType, String, Int?, Error?)->()



      onError(error, response)
      return
    }
      
    if let data = data, let image = MoaImage(data: data) {
      onSuccess(image)
    } else {
