improved documentation, updated roxygen2