improve+fix SPM example
fix examples use GMM for thresholding