tentative readme and fixes in R scripts