add interval-length
Merge pull request #1 from olivierHa/master

add interval-length support