check for nans and bad step sizes
Merge pull request #92 from jonbinney/7_19

check for nans and bad step sizes