updated check to CHECK --as-cran. Package passes cran check with 7 warnings.