Minor typos in Document code