added some docs using roxygen2