Improve documentation and code review for uc_affirm