add .R files and Documentation