         lastStoredTreatmentTimestamp = nil
     }
 
-    public init(siteURL: NSURL?, APISecret: String?) {
+    public init(siteURL: NSURL, APISecret: String) {
         self.siteURL = siteURL
         self.APISecret = APISecret
         

        case BadRF = 12
    }
    
    public var siteURL: NSURL?
    public var APISecret: String?
    
    private(set) var entries = [[String: AnyObject]]()
    private(set) var deviceStatuses = [[String: AnyObject]]()

    
    public func checkAuth(completion: (ErrorType?) -> Void) {
        
        let testURL = siteURL.URLByAppendingPathComponent(defaultNightscoutAuthTestPath)
        
        let request = NSMutableURLRequest(URL: testURL)
