Fix variable name, add declaration/phpdoc
Avoid undefined variable warnings.
Add @todo
CLASS isn't used (or needed) in EAS >= 12.0 GETITEMESTIMATE requests.