update style guideline, add snippets section