Added comments to controller