Adding some comments and trying to make the repeater a little easier to understand