refactoring services, introduced percent formatter, using templates for labels and formats instead of config files