fix ddoc and header generation