Spatial transformation fixed.Intensity normalization fixed. Script improvement.