improve error messages
all non-internal errors raised with
stopifnot
should be changed to more meaningful errors