Fixed minor bugs.
Changed NRXValue to a protocol. Implemented math using NSDecimalNumber.