 
 class TaskManDocument: NSDocument {
     
-    var taskManState = TaskManState(range: DateRange(startDate: Date(),endDate: Date().addingTimeInterval(8 * 60 * 60)))
+    var taskManState = TaskManState(range: DateRange(startDate: Date(), endDate: Date().addingTimeInterval(8 * 60 * 60)))
     
     override func defaultDraftName() -> String {
         let now = Date()

        self.addWindowController(windowController)
    }

    override func windowControllerDidLoadNib(_ aController: NSWindowController) {
        super.windowControllerDidLoadNib(aController)
        // Add any code here that needs to be executed once the windowController has loaded the document's window.
    }

    override func data(ofType typeName: String) throws -> Data {
        var json = JSON([:])
        let state = taskManState.serialize()

        json["state"].object = state.object
        json["version"].int = FileFormatVersion
        
        return try json.rawData(options: .prettyPrinted)
    }
    
    override func read(from data: Data, ofType typeName: String) throws {
