add comments to pdf generation