updated readme and r script