remove defined but unused variable
Updated documentation using newer roxygen package