Update and rename main.py to controller.py