Added selfcal and spectral flagging tools.