Fix all CRAN warnings and NOTEs