cleaned up MEDI and QSM_IRLS