             }
         }
     }
-    
+    /*
+    An example Component definition.
+    
+    [
+    ZD2
+    0805A DIODE
+    3V9
+    
+    
+    
+    ]
+    
+    First entry is the name. Second is the footprint and third is the value.
+    */
     func parseComponent(fromString string: String) {
         let fragments = string.componentsSeparatedByString("\r\n")
         if fragments[0] == "[" {

    var components: [Component] = []
    var nets: [Net] = []
    var pads: [Pad] {
    get {
        var listOfPads: [Pad] = []
        for component in components {
            //println("\(component.description()) has \(component.pads.count) pads")
            for aPad in component.pads {
                listOfPads += [aPad]
            }
        }
        return listOfPads
    }
    }
    
    public init(){}

    let pinName: String?
    let component: Component
    var name: String {
        var response = component.designator + "-"
        if let num = pinNumber {
            response += "\(num)"
        } else {
            if let nam = pinName {
                response += nam
            } else {
                response += "?"
            }
        }
        return response
    }
    var description: String {
        return self.name
    }
    
    init(pinNumber: Int?, pinName: String?, component: Component) {
