         
         //create file
         let fileManager = NSFileManager()
-        fileManager.createFileAtPath("/Users/mcielecki/Code/storybots-ios/Storybots/Base.lproj/MCTest.storyboard", contents: prettyOutput.dataUsingEncoding(NSUTF8StringEncoding), attributes: nil)
+        fileManager.createFileAtPath(filePath, contents: prettyOutput.dataUsingEncoding(NSUTF8StringEncoding), attributes: nil)
     }
     
     @IBAction func generateLayoutButtonPressed(sender: AnyObject) {

                currentView = view
                currentView?.parentView = parentView
                if elementName == "imageView" {
                    currentView?.usingAspectRatio = true
                }
            }
        }

    var currentNode = NSXMLElement(name: "document")
    var outputXml: NSXMLDocument!
    var parser = NSXMLParser()
    var usingAspectRatioGlobal = false
    
    let supportedViews = ["view", "imageView", "label", "button"]
    
    private func beginParsing() {
        
        outputXml = NSXMLDocument()
        outputXml.version = "1.0"
        outputXml.characterEncoding = "UTF-8"
        
        let filePath = "/Users/mcielecki/Code/storybots-ios/Storybots/test.storyboard"
        let xmlFile = NSData(contentsOfFile: filePath)
        parser = NSXMLParser(data: xmlFile!)
        parser.delegate = self
