Doc script fixes