Separate the script in many files and add some comments