add force_return argument to Document loop
Merge pull request #343 from lunika/DocumentLoop

add force_return argument to Document loop