Updates documents