added duration method to rest
Merge pull request #14 from areagle/master

added duration method to rest