he was the author of various works about catalan history and law