Bug fixes and harmonizations with interval_adapt.
Merge pull request #4 from lebarsfa/master

Bug fixes and harmonizations with interval_adapt.