Added gqi to analyze_training
updated reconst_to_mat still fixing some errors with Nans