Add config parser and make it work with configuration file. Turn constants into dict to work with configuration file