Fixed the creation of 3 global variables:

p in Options.lua
pixie and path in Perspective.lua
Removed code section that does nothing (both tbl and index are not used in UpdateUnit)
Added some local function references, only some with the exact name :)