Solved most issues reported by CMD check

Corrected all but one R CMD check errors and warning.
Error relates to the production of the PDF version of the manual.