Refactoring code, added internationalization

Signed-off-by: Victor Zagnitko <victor.zagnitko@yandex.ru>