The main function should ideally just initialize the XKCDViewer class, the logic of displaying should be contained inside the XKCDViewer.
The main function should ideally just initialize the XKCDViewer class, the logic of displaying should be contained inside the XKCDViewer.