minor improvements of R scripts (tuto + utils)