Adding optional maxDelayTime parameter into internal_createDelay

Without this, all delay times default to a max of 1 second.
Merge pull request #7 from andrewmalone/Add-maxDelayTime

Adding optional maxDelayTime parameter into internal_createDelay