Refactors code_climate model. Adds inadequate testing.