added snippets and tweak to syntax