adds support for the callback called at the end of each iteration
Xcode: udpates
updates doc