Lua support, fixes, and new features from my fork

also auto detect RAF location by 0x2A