updated GUI to correctly output and save the contents of the rule
generation to a text file.