Moved signalconnections to own function
Moved read/write_config to own module
Changed modified-related stuff