Document UserError
Fix some too-long code samples