fixed various things

- invalid reference to `d_xobs_object_base`; renamed to `d_xobs_base`
- all input pointer, `void *` is changed to `const void *`