Fixed time delay function and added test.
Merge pull request #36 from csu-hmc/time-shift

Fixed time delay function and added test.