Add javadocs for controller