big documentation/roxygen cleanup

docs may not be perfect, but pass R CMD check
first pass at docs for modular functions