replace @S3method with @export, documentation now generated by roxygen 4.0.0