implemented phrase distances, added new bucket menu to template