added Config class and denying direct access to config file