add sanity check for left extrapolation
Merge pull request #51.