major improvements in the levenstein algorithm
remove console logs
move some logic to router