reorganising snap.R
Merge pull request #7 from pmur002/master

reorganising snap.R