Add config file support

Closes #1