chg: format, types
fix: memory allocation off by 1 (nRegister)
chg: introduce cring