Pulse Difference input processing, handle signed integer

First, I'm sorry about not knowing what I'm doing regarding GitHub, this is my first stab at a pull request.. Hope I get this right :)

Instead of silently ignoring negative values passed into pulse_diff(),
convert them to unsigned integer. Pulses should always be positive.

Refs #22