Translated the code to english and removed unnecessary commentary