Making agreements in medieval Catalonia :power, order, and the written word, 1000-1200