Add configuration file support. Fixes #11