updating the Rservice with new functions from Shweta branch.
Has some hard coded file path... to be fixed.