duration API changes
Merge pull request #4 from samdoshi/duration

duration API changes