Eliminated import aliasing problem
Added method for parameter checking
Moved preprocessing methods into series

Split generic function into more meaningful sub-methods, like
‘detrend’, ‘center’, and ‘normalize’, which will make it easier to
combine and extend
merge from upstream