Get rid of all the `stopifnot()`'s and add better messages
Get rid of all the
stopifnot()'s and add better messages