added #download_document method