misc updates and changes.
Did some rearranging.
Worked on distance metrics.
Added a new file.