-corrected accumulator setting in similarity function
-cleaned output formatting