Fixed Rest duration()
Merge pull request #14 from aradha/master

Fixed issue number 4