Fixed a bug in global offset estimation, also made the remove_outliers function local instead of global
I think I changed this at some point arbitrarily.  Let's not take an abs; we would have to keep track of this and flip the signal when the corr max was negative.
Now Wiener filtering with the aligned, unfiltered version instead, which seems to help a lot when the filter estimation gets messed up.  Code still needs to be changed for when more than one  iteration is used.