Changes to clear R CMD check --as-cran and some missing documentation.