fix cran-check warnings, import data.table for namespace file