fixed reader functions and updated rmd
updated