added snippets methods Fixes #5
updated snippets tests