Cleaned up code. Changed the way in which the close operation is handled on the PIN GUI. Improved the WriteInCandidate GUI's visual aspect and implemented it in such a way that makes it easy to be created from another application (rather than through its main method).