Fixed documentation script, and separated client vs server documentation generation.