added snippets
changed init