BUG: fixed several bugs. Still some work to do (see TODO).
TEST: added testing for sct_dmri_moco