Add config

- [x] tests for YamlLoader class
- [x] refactoring structure