Merge pull request #7 from pmur002/master

reorganising snap.R
some changes in rip and snap
"changes" function (not complete)
small changes from Paul