Linting and clean-up of gui.generator module

This module will soon be used as the basis of some new features.