Added duration method to Rest class
Merge pull request #16 from mikaelm12/master

Added duration method to Rest class