fix regnames, cleanup
fix return value documentation, add comments
fix default that gives errors on check
return value documentation