Adopted JSS style, updated abstract
Updated the diffv function to account for infinities and NaN numbers