Added motion correction pipeline

  * Added motion correction pipeline, rotating the b-matrix
  * Some minor fixes on the rest of pipelines