Update Controller.java

added comments