Change encoding to utf-8
Add refresh method. Change priorities into percents