DEV: improvements and fixing bugs
DEV: improvements and fixing bugs

Former-commit-id: 7324532d9ebefe30553cf541372c079e3e5cd5a8
neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox