                 jsonDictionary = try NSJSONSerialization.JSONObjectWithData(jsonData, options: NSJSONReadingOptions.MutableContainers) as! NSDictionary
             } catch let error as NSError {
                 delegate?.errorDidOccur(error, userString: error.localizedFailureReason)
-                if debugEnabled { print(error); print(urlToRequest) }
+                print(error)
             }
         } else {
-            if debugEnabled { print("-------- URL IS INVALID --------") }
+            print("-------- URL IS INVALID --------\n")
             delegate?.submittedURLInvalid(urlToRequest)
         }
         

//
//  Created by Mobin Zadeh Kochak on 04/09/2015.
//  Copyright (c) 2015 Mobin Zadeh Kochak. All rights reserved.
//  Edited by Mason Phillips (https://github.com/mathmatrix828/
//  Edited on 30MAY2016
//

import UIKit

public class lolApiWrapper: NSObject {
    
    // MARK: Initialised detail
    var APIKey: String
    var region: String?
    var miniURL: String!
    var result: NSDictionary!
    var static_data: Bool
    private var debugEnabled: Bool
    
    var delegate: LolAPIListener?
    var sharedInstance: lolApiWrapper = lolApiWrapper()
    
    override init() {
        static_data = false
        debugEnabled = false
        APIKey = ""
    }
    
    convenience init(withKey k: String) {
        self.init()
        APIKey = k
    }
    
    convenience init(withKey k: String, andRegion r: String) {
        self.init()
        APIKey = k
        region = r
    }
    
    convenience init(withKey k: String, andRegion r: String, debugEnabled e: Bool) {
        self.init()
        APIKey = k
        region = r
        debugEnabled = e
    }
    
    // MARK: Retrieve API
