BUG: fixed several bugs. Still some work to do (see TODO).
BUG: fixed several bugs. Still some work to do (see TODO).

3324fr/spinalcordtoolbox,3324fr/spinalcordtoolbox,3324fr/spinalcordtoolbox,3324fr/spinalcordtoolbox,3324fr/spinalcordtoolbox,3324fr/spinalcordtoolbox,3324fr/spinalcordtoolbox