switching to roxygen using Rd2roxygen and many small manual fixes