Converted scripts into R package
Merge pull request #3 from andrie/master

Converted scripts into package