Added handling of config file. Load, generating, validating and saving