Fix delay rounding issue

Fixes issue #20
Refactor patch according to review suggestions
Merge pull request #21 from pronebird/master

Fix delay rounding issue