add schema.assert() and fix docs