Commenting commit

Addition of brief comments for controller.js