added comments to snippets