Setup Instance hiearchy. Started Lua wrapper code based on work by DigiTechs.