Bug fixes and improvements

Bug fix with offsetting issue
Adding goodness of fit metrics
using max OD from a median filtered signal for extention to remove
outliers