Change linkLists to dictionaries. Also add the document as a Clause's attribute instead of its name.