Fixes #2 and reads configuration from YAML-file.