Clean and comment the code