add sanity check for left extrapolation
Merge pull request #51.
Merge remote-tracking branch: upstream/master