NF: slice time / motion correction script

Using Alexis' algorithm.