updated build/doc script