Add integrator limit

This fix issue #3 by adding a configurable limit to the integrator value.

tests included.