adding home-documents and fixing XML encodings