Apply closure and update doc file