Refactoring, more testing, retry policy added
Added Repeat...
Cleaning up the repeat syntax a bit