DDF-588: nearestNeighbor now configurable
DDF-588: Fixed input handling
DDF-588: Took out old comments & formatted
DDF-588: Now using Math.abs()
Merge pull request #9 from harrison-t-lm/master

DDF-588: nearestNeighbor now configurable