New Readme file in R directory + bugfix + refactoring