Add Upvalues, remove globals
Fix several misnamed variables (options.option instead of data.options.option, new instead of update.new)