You list all your lua files in your addon's TOC file.
Sharing data between your lua files works by putting this at the beginning of every lua file:
Code:
local folderName, Addon = ...
The "Addon" table is then shared by all your lua files.
If you do not need your Addon's folder name you can also just do:
Code:
local _, Addon = ...