Adds interval api & test cases.
Updates README and increments the version.