fix bug in despiking... seems to work,but needs more testing
Merge remote-tracking branch 'origin/master'