using Rf_isNull instead of == R_NilValue
using Rf_isNull instead of == R_NilValue
include the package file first. closes #64