Refactoring config loader
Updating readme for new API