not sure if I understand you right but you can share data between different files this way:
Code:
local addonName, addonTable = ...
Every file should have a line like this at it's top. Every file loaded in your loading process gets this information passed at startup. First argument is the name of your addon and the second is a table that is passed on to every file. It's empty at first but you can put your data and functions into this table in one file and use them in the next.
So you can split your addon in as many files as you want.