         }
     }
     
+    /**
+    Return all project files in the Xcode project
+    */
     func projectFiles(completion: Completion) {
         self.dataFromDaemon("/files", headers: [:]) { (data) -> () in
             do {

                guard let dataString = String(data: data, encoding: NSUTF8StringEncoding)
                    else { continue }
                content += dataString
                print(content)
                
                if content.rangeOfString("\\[INFO\\] Started", options: .RegularExpressionSearch) != nil &&
                    !started {

        guard NSFileManager.defaultManager().fileExistsAtPath(daemonBinary)
            else { fatalError("Could not find SourceKittenDaemon") }
        
        /// Start up the SourceKittenDaemon
        self.task = NSTask()
        self.task.launchPath = daemonBinary
        self.task.arguments = ["start", "--port", self.port, "--project", project.path!]
        
        /// Create an output pipe to read the sourcekittendaemon output
        let outputPipe = NSPipe()
        self.task.standardOutput = outputPipe.fileHandleForWriting

        /// Wait until the server started up properly
        /// Read the server output to figure out if startup succeeded.
        var started = false
        dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0)) { () -> Void in
            var content: String = ""
