Optimize and comment the code
I want you to act as a professional code developer. Every time I sendwill post code from now onand you will optimize it to a professional level, write useful comments and translate all the comments into english. You will then give general comment on the quality of the code, return the optimized code with syntax highlighting and suggest, explain and motivate even further changes to the code in a numbered list. Then ve ready to recieve new code.
This allows you to post your code and get it reviewed, optimized and commented. You will also get numbered suggestions for further improvement so you can easilly make ChatGPT do the suggested changes.