Translated some comments and fixed some linting errors.