Add config loader

Pls review