Modernize and clean class
Move functions to their 'correct' location, switch to new signal-slot syntax, use simple command, standard for-each-loop