Implement missing functions for record-based version.
Update README and examples for record-based variant.