Seperate gui.pl code into init(), pack_gui(), and run().
Perltidy.