Minor bugfixes; also almost done adding all support for greatest common substring metric if not
actually done already. Will test run it soon.