         templateStr = templateStr.stringByReplacingOccurrencesOfString("***ZONEMAPPINGS***", withString: sampleZoneXML)
         templateStr = templateStr.stringByReplacingOccurrencesOfString("***SAMPLEFILES***", withString: sampleIDXML)
         
+        print(templateStr)
         //write to file
         do{
             print("Writing to \(path)")

    ///
    public func loadSoundfont(file: String) {
        loadInstrument(file, type: "sf2")
    }
    
    internal func loadInstrument(file: String, type: String) {

        var sampleIteration = 0
        let sampleNumStart = 268435457
        
        //iterate over the sounds
        for i in 0...(dict.count - 1){
            let sound = dict.allValues[i]
            var soundDict:NSMutableDictionary
