changed publication of Documents, some fixes