replaced worthless metric
remove limit
added simple edit distance
fixed some syntactical bugs
forced shuffling at varous places -- important not to fool ourselves