add comments to code snippets