Update controls.py

Few changes to write to txt file.