Things should be done in a proper way.
LUA - functionality/tools/calculations, XML - graphics.
Started little by little rewriting my addon.