Added sphinx compatible documentation - controller.py