Added split between positive/negative
Cleanup
Added test
Refactored and added split for residuals
Refactored
Cleanup
Handle variable names