Criminal Justices

What is the purpose of a criminal trial?  What is the difference between factual guilt and legal guilt?  What do we mean by the term adversarial system?