Added roxygen2 documentation.