Analysis of Legal Institutions, Conflict and Trade