First version to pass -check

Code and documentation compile through -check with one warning about
--resave-data
First version submitted to CRAN