Formatted code and changed event handles and javadoc in pcm.gui