add .gitignore
added a tutorial on R function