Fix mistypes and apply coding standards.