What is the purpose of the process of determining facts by allowing the submission of evidence and witness testimony? What is the purpose of the process of reviewing the process and application of law?