mostly doc, roxygen, and namespace cleanup