Added control and validation of config file