Updated documentation

* Updated to use roxygen2 version 4.0.0 when building the
  documentation.

* Fixed issues identified with check_doc()