updated presentation and R functions