Added snippet for SpatialConvolutionMM and cleaned the code