Add comments (in snippets) and add bmain snippets for cpp