Fix sub
Fix readopr
Add writeopr
Fix swab
Fix writeopr
curry
Fix readopr