Bugfixes, and a new Document daemon