added onLoopDone callback, done a sample with a loop inside another loop
many new feature added: support for async callbacks, support for repeating the loop, support for passing over the iteration index to the function