ENH: Adding rank computing function
FIX: Adding to ref
FIX: Addressing comments
STY: Better variable naming
WIP: Moving toward improving match
FIX: Making inverse calculation more consistent