Remove libconfig

refactored