Fixed a few bugs with the GUI. Not much left to add excluding the whole rules thing.