minor edit: changed #' to # in a couple of places. roxygen2 has a bug.