simplified classification tree generation and added search string

for now search string is only on service name.