analyze_data able to save figs
added figs