Made stuff readable and organized the config into a seperate class.