Fixed a possible infinite loop in normalize()
Add handles radixes correctly now.
Added Ratio function.