added smooth factor - beta, besides added simple test set(w/ deadend).