Added ability to create documents by uploading text files.