Added docstring to controller file.