Changed assertions to glog CHECKs rather than assert.h asserts.