added some roxygen documentation