changed to nicer conditions
changed abs -> Math/abs
made more clojure-y
made more clojure-y
made more clojure-y
changed name to become more like the standard
made code a bit more compact. Maybe too compact?