Issue #OUT-65 - Price calculation
Updated comments.
Cleaned up code.
Added a sanity check.