Add code comments to prototypes and controller