Added docstring for repeat function.
blah blah blah