minor updates to Rmd code