Working config file support

Resolves #5