As my knowledge in programming grows, I changed to a more OOP :) Own classes for config, read and write