 	A recursive function that goes through an element and all its children, finding clips that match the given name.
 	
 	- parameter forName: A String of the name to match clips with.
-	- parameter inElement: The NSXMLElement to recursively search.
+	- parameter inElement: The XMLElement to recursively search. This is usually self.
 	- parameter usingAbsoluteMatch: A boolean value of whether names must match absolutely or whether clip names containing the string will yield a match.
 	
 	- returns: An array of matching clips as NSXMLElement instances.

	
	
	/// If this is an event item, the event that contains it. Returns nil if it is not an event item.
	public var fcpxEvent: XMLElement? {
		get {
			guard self.isFCPXEventItem == true else { // If this is a clip inside an event
				return nil

	
	// MARK: - Creating FCPXML XMLElement objects
	
	
	/// Creates a new event FCPXML XMLElement object.
	///
	/// - Parameter name: The name of the event in Final Cut Pro X.
	/// - Returns: An XMLElement object of the event.
	public func fcpxEvent(name: String) -> XMLElement {
		let element = XMLElement(name: "event")
		element.fcpxName = name
		return element
	}

	
	/// Creates a new event FCPXML XMLElement object and adds items to it.
	///
	/// - Parameters:
	///   - name: The name of the event in Final Cut Pro X.
	///   - items: Items to add to the event.
	/// - Returns: An XMLElement object of the event.
	public func fcpxEvent(name: String, items: [XMLElement]) -> XMLElement {
		let element = XMLElement(name: "event")
		element.fcpxName = name
		do {
			try element.addToEvent(items: items)
		} catch {
			return element
		}
		return element
	}
	
	/// Creates a new ref-clip FCPXML XMLElement object
	///
	/// - Parameters:
