fixed issue 5 where duration returned the wrong value instead of the sum
Merge pull request #14 from eriksnguyen/master

fixed issue 5 where duration returned the wrong value instead of the sum