Documents:several small fixes to Documentmanagement