Updated repeat() and retry() to take integers in addition to options objects. Added checks and tests