replaced all constants with variables that are read from the configuration file. Completed code for reading configuration files.