Refactor config parsing
Bump version to v0.4.0