fixed some snippets

also writer mode in unix
fixed snippet file name
pull request merged. close #21