added README, a test file and an example R package