Add support for downloading the thumbnail and text of the document.
Also bug fixes here and there.