Apply coding standards and improve tests.