CRAN compliance fixes

Fix formatting issues to comply with CRAN standard.