Convert Rd to roxygen documentation and utilities to improve