The accused pleads "not guilty by reason of mental defect." In such a case, a verdict of "not guilty" - "free to go" is not possible. If he is not found guilty, he is bound over to psychiatric confinement as long as medical authority determines. In most insanity cases, the accused serves more time confined than he would have sentenced to prison if found guilty.
ADA Cabot questions Jake Stanton, then rests her case. Stanton's lawyer then begins cross-examination. Cabot could not have called Stanton as a witness against himself so this sequence of events is legally impossible. Correction: after Cabot rests her case, Ellis asks for a re-direct. After cross examination, the lawyer that called a witness can question that witness again, which is called a re-direct. This means Ellis had called him and had questioned him first, it just wasn't shown. The cross examination and re-direct were shown.