Move from records to structs. Update API and tests
Add notes regarding planned API