Further tuning up-doc script