make things a bit more functional, add allgrants example
remove spurious resample/rescale crap from my example