Rest now compiles. Added duration method.
Merge pull request #14 from kulpreetchilana/master

Fixed issue #4