Updated document generation scripts