tidied up to pass the CRAN type checks
a bit of tidy up on the params and the install