fixed annoying typo
added document name to template

Just for testing purposes.
get_pending_documents with threshold per field.