make things a bit more sensible.
replace float types w/double and add euclidean distance fn.
vanity commit.
merging develop into master.