Add some assertions
Update readme

State that user is responsible for passing pointers to valid
structures.