fix generateContents
polish documents
fix generateContents
make documents compatible with XHTML