     var isReaderOpen = false
     var isReaderReady = false
     
+    
     var nightMode: Bool {
         get { return FolioReader.defaults.valueForKey(kNightMode) as! Bool }
         set (value) {

    subscript(safe index: Int) -> Element? {
        return indices ~= index ? self[index] : nil
    }
}
            FolioReader.defaults.setValue(value.rawValue, forKey: kCurrentMediaOverlayStyle)
            FolioReader.defaults.synchronize()
        }
    }
    
    // MARK: - Get Cover Image
    
    /**
     Read Cover Image and Return an IUImage
     */
    
    public class func getCoverImage(epubPath: String) -> UIImage {
        return FREpubParser().parseCoverImage(epubPath)
    }

    // MARK: - Present Folio Reader
