added --mat option to compute_fits.py