Fixed config file writing
Interface improvements