More tests
Rewrite config resolution and parsing
Write readme