cosmetic changes
re-organize roffset methods
Use SubsNC in roffset
refactor contrank computation
remove some typealias