sanity checking asserts added to a couple of functions
sanity checking asserts added to a couple of functions
beagle-dev/beagle-lib,beagle-dev/beagle-lib,beagle-dev/beagle-lib,beagle-dev/beagle-lib,beagle-dev/beagle-lib