Fix some problems that cause R CMD check to fail
Doc fixes from roxygen2