added missing config.yml to example project; refactored methods