added NewConfigFromFilename. Fixes #1.