added safe clamped subtraction macro
removed unnecessary functions, consolidated several 'measure' functions, general organization
refactored set_nkf, replaced some calls to CLAMP_DIFF with assertions
entry/exit debug macro
corrected num_sats = 0
Merge pull request #67 from kovach/cleanup

added clamped subtraction macro, general code cleanup