Update UIClass.java

Added comments to the methods.