Added enhanced ruleset from new Codenarc and fixed code that used wrong API