Add loading configuration from file.
PR comments fixups.