implemented duration method
added second getter method to concat
Merge pull request #15 from jinpan/master

@Issue4: Fixed the Rest by implementing the duration method