Iteration for warping procedure added

working state, still needs to be improved and tested