Roxygenise

This passes R CMD check and shouldn't introduce any behaviour changes (except that I now don't export a whole lot of things that shouldn't have ever been exported)