Document how receipts are used
Extract error logic into ErrorFrame class