GUI variables initialize correctly.

Plus many other minor fixes and improvements.