             exit(-1)
         }
 
-        var result:[String:AnyObject]? = nil
+        var result:[String:AnyObject] = [:]
         if (inputFiles == nil) {
             inputFiles = getOptions(args, option: "-inputs")
         }
         if (inputFiles != nil) {
             for file in inputFiles! {
-                let d = fromJSONFile(file)
-                if (d != nil) {
-                    if (result == nil) {
-                        result = d
-                    }
-                    else {
-                        result = result! + d!
-                    }
-                }
+                if let d = fromJSONFile(file) {
+                    result = result + d
+                }
+                print(result)
             }
         }
 

            }
        }
        return true
    }

    func createFolder(src: String) -> Bool {

            }
            outputStr.appendContentsOf(genString + "\n")
            do {
                try outputStr.writeToFile(langOutputFile, atomically: true, encoding: NSUTF8StringEncoding)
            }
            catch {
                print("Error: writing to \(langOutputFile)")
            }
        }
    }
