Memory management improved. WIP: config file reader