Add more record-based functions and improve docs.