The application shall be heard in, and before any judge of, a court of competent jurisdiction in the county in which the conviction took place. A record of the proceedings shall be made and preserved. All rules and statutes applicable in civil proceedings are available to the parties. The court may receive proof by affidavits, depositions, oral testimony or other evidence and may order the applicant brought before it for hearing. If the court finds in favor of the applicant, it shall enter an appropriate order with respect to the conviction or sentence in the former proceedings, and any supplementary orders as to rearraignment, retrial, custody, bail, discharge, correction of sentence or other matters that may be necessary and proper. The court shall make specific findings of fact, and state expressly its conclusions of law, relating to each issue presented. This order is a final judgment.