Side note, line 1 should begin with the word
local and
optionsProfile on line 209 should also be localized.
If you have multiple Lua files in your addon, you can get a reference to the main table in the other Lua files using
Code:
local RaidSummon = LibStub("AceAddon-3.0"):GetAddon("RaidSummon")
This will cut down on errors caused by name conflicts in the global namespace.