Added new set similarity measure. Cleaned up some testing and processing stuff.