All variables and functions are global
Issue #2
new
I checkd your code and saw that all your variables and functions are declared in the global scope (without "local"). This should be avoided as this makes your addon "vulnerable" to modifications by other addons and also "pollutes" the global scope.