Please review and accept the fix for issue #58

Added 2 optional parameter allowing user to specify max number of retries and time to wait on message re-send in case of failures.