UTI: Add comments and clean the code.