Add variables override in translateVars().

Signed-off-by: Toha <tohenk@yahoo.com>
Fix extended file naming and classes used.

Signed-off-by: Toha <tohenk@yahoo.com>