Added initial random code, and made a lot of GUI tweaks.