refactoring - part 4. Mostly made the mainwindow class lighter by
extracting methods to the Reconstructor class.