modified variables and their names
changed the location of the config file
added envars support