Config file implementation, fixes #67.