Corrections done due to CRAN submission rules. Checked with test_package() and Check as--cran.