Fixes to shut up R CMD check and some docs