Updated doc generation script